package com.ruoyi.course.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程对象 course
 *
 * @author 刘红
 * @date 2023-11-28
 */
@Data
@ToString
@NoArgsConstructor
@Accessors(chain = true)
@TableName("course")
@ApiModel(value = "Course", description = "课程实体")
public class Course extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type= IdType.AUTO)
    @ApiModelProperty("主键")
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    @ApiModelProperty("名称")
    private String name;

    /** 介绍 */
    @Excel(name = "介绍")
    @ApiModelProperty("介绍")
    private String description;

    /** 课程类型 */
    @Excel(name = "课程类型")
    @ApiModelProperty("课程类型")
    private Long type;

    /** 人数 */
    @Excel(name = "人数")
    @ApiModelProperty("人数")
    private Long number;

    /** 班级 */
    @Excel(name = "班级")
    @ApiModelProperty("班级")
    private Long classroom;

    /** 老师 */
    @Excel(name = "老师")
    @ApiModelProperty("老师")
    private Long teacherId;

    /** 学分 */
    @Excel(name = "学分")
    @ApiModelProperty("学分")
    private Long score;

    /** 周一 */
    @Excel(name = "周一")
    @ApiModelProperty("周一")
    private Integer monday;

    /** 周二 */
    @Excel(name = "周二")
    @ApiModelProperty("周二")
    private Integer tuesday;

    /** 周三 */
    @Excel(name = "周三")
    @ApiModelProperty("周三")
    private Integer wednesday;

    /** 周四 */
    @Excel(name = "周四")
    @ApiModelProperty("周四")
    private Integer thursday;

    /** 周五 */
    @Excel(name = "周五")
    @ApiModelProperty("周五")
    private Integer friday;

    /** 状态 */
    @Excel(name = "状态")
    @ApiModelProperty("状态")
    private String status;

    @TableField(exist = false)
    private String userName;
}
